/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.wpi.first.wpilibj.team1662.subsystems;

import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.team1662.RobotMap;

/**
 *
 * @author programmer
 */
public class BallPusher extends Subsystem{
    private Solenoid bar;
    private Solenoid bar2;

    public BallPusher(){
         bar = new Solenoid(RobotMap.bar);
         bar2 = new Solenoid(2);
    }
    
    public void eject(){
        bar.set(true);
        bar2.set(false);
    }
    
    public void retract(){
        bar.set(false);
        bar2.set(true);
    }
    
    protected void initDefaultCommand() {
        bar.set(false);
        bar2.set(true);
    }
    
    
    
    
}
